package com.zhiliao.module.web.cms.service;

import com.github.pagehelper.PageInfo;
import com.zhiliao.component.lucene.util.IndexObject;

/**
 * Description:
 *
 * @author qirong
 * @date 2018-10-26
 */
public interface LuceneService {

    /**
     * save
     * @param indexObject
     */
    void save(IndexObject indexObject);

    /**
     * update
     * @param indexObject
     */
    void update(IndexObject indexObject);

    /**
     * delete
     * @param indexObject
     */
    void delete(IndexObject indexObject);

    /**
     * page
     * @param pageNumber
     * @param pageSize
     * @param keyword
     * @return
     */
    PageInfo page(Integer pageNumber, Integer pageSize,String keyword);
}
